package com.sky.service;

import com.sky.dto.CategoryDTO;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import com.sky.result.Result;
import org.springframework.web.bind.annotation.PathVariable;

public interface CategoryService {
    public Result AddCategory(Category categoryDTO);

    public Result GetPage(CategoryPageQueryDTO categoryPageQueryDTO);

    public Result DeleteById(Integer id);

    public Result Update(CategoryDTO categoryDTO);

    public Result Update(@PathVariable Integer status, Integer id);

    public Result getType(Integer type);


}
